package com.sumainfor.wx.tenant.service.impl;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.MarketFeignClient;
import com.sumainfor.wx.tenant.service.TctenRepairService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * 租客维修接口实现类
 */
@Service
@Log4j2
@Transactional(rollbackFor = Exception.class)
public class TctenRepairServiceImpl implements TctenRepairService {

    @Autowired
    private MarketFeignClient marketFeignClient;

    @Override
    public List<Map<String, Object>> getPactByTenId(String tenId) {
        Map<String, Object> param = new HashMap<>();
        param.put("tenId", tenId);
        JsonResult js = marketFeignClient.getTenantKepp(param);
        if (JsonResult.SUCCESSCODE.equals(js.getErrorCode())) {
            Object data = js.getResult();
        }
        return null;
    }

    @Override
    public Integer getTctenRepairByTenIdFaId(Map<String, Object> params) {
        return null;
    }

    @Override
    public JsonResult getTctenRepairByHouId(Map<String, Object> params) {
        return null;
    }
}
